package com.coderfans.datagithub.processservice;

import java.util.Map;

/**
 * Created by ${fanchunshuai} on 2016-11-14.
 *
 * @version: V1.0
 * @Desc:  公共的单页爬取接口
 * @Copyright (c) 2016 58到家-版权所有
 */
public interface IProcessService {
    /**
     * 单页爬取方法
     * @param link      爬取的单页URI
     * @param threadNum 爬取的线程数，由于是单页爬取，如果threadNum <=0 则设置为2
     * @return   返回爬取到的键-新值(xvalue)
     */
    Map<String,Object>  processPage(String link,int threadNum,Class clazz) throws IllegalAccessException, InstantiationException, ClassNotFoundException;

}
